package ltd.dujiabao.eduservice.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author : DuJiabao
 * @Project : online-course-project
 * @Time : 2021/4/21 16:24
 * @Desc : 用于封装课程表单提交的对象
 */
@ApiModel(value = "课程基本信息", description = "课程表单提交对应的对象")
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class CourseInfoForm implements Serializable {
  private static final long serialVersionUID = 1L;

  @ApiModelProperty(value = "课程ID")
  @TableId(value = "id", type = IdType.ID_WORKER_STR)
  private String id;

  @ApiModelProperty(value = "课程讲师ID")
  private String teacherId;

  @ApiModelProperty(value = "课程二级分类ID")
  private String subjectId;

  @ApiModelProperty(value = "课程一级分类ID")
  private String subjectParentId;

  @ApiModelProperty(value = "课程标题")
  private String title;

  @ApiModelProperty(value = "课程销售价格，设置为0则可免费观看")
  private BigDecimal price;

  @ApiModelProperty(value = "总课时")
  private Integer lessonNum;

  @ApiModelProperty(value = "课程封面图片路径")
  private String cover;

  @ApiModelProperty(value = "课程简介")
  private String description;
}
